From cec5815a0de9ba60417ed6611e9addcc3e85e9a2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 10 Jan 2015 13:58:39 +0100 Subject: [PATCH] stylecontext: Stop animations on manual invalidation If a gtk_style_context_invalidate() is called on a widget's style context (which nobody should ever do, sheesh!) and we're animating, stop the animations. Fixes crashers in Nautilus. --- gtk/gtkstylecontext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 4e91e843ee..25385f0b23 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -3072,6 +3072,9 @@ gtk_style_context_invalidate (GtkStyleContext *context) gtk_css_node_set_values (context->priv->cssnode, style); g_object_unref (style); + if (!gtk_style_context_is_saved (context)) + _gtk_style_context_update_animating (context); + changes = _gtk_bitmask_new (); changes = _gtk_bitmask_invert_range (changes, 0, -- 2.30.2